package com.guodu.dao;

import java.util.List;

import com.guodu.entity.Contract;
import com.guodu.entity.ContractStatus;
import com.guodu.entity.Units;
import com.guodu.entity.UserInfo;
import com.guodu.vo.ContractQueryVo;
import com.guodu.vo.ContractVo;


public interface ContractDao {
	List<Contract> findByVo(ContractQueryVo contractQueryVo,Units units,UserInfo userInfo,int curPage , int pageSize);
	List<Contract> findAllByVo(ContractQueryVo contractQueryVo,Units units,UserInfo userInfo);
	ContractVo findAllMoney(ContractQueryVo contractQueryVo,Units units,UserInfo userInfo);
	int findSizeByVo(ContractQueryVo contractQueryVo,Units units,UserInfo userInfo);
	void examin(ContractQueryVo contractQueryVo,Units units,UserInfo userInfo);
	Contract findById(String id);
	void del(String id);
	void delByIds(String[] ids);
	void save(Contract entity);
	void examine(String ids,Long status);
	void update(Contract entity);
	void changeStatus(List<ContractStatus> entities);
	List<ContractStatus> findStatus(String id);
}
